package android_design_mode.chapter17_mediator.computer_mediator.parts;

import android_design_mode.chapter17_mediator.computer_mediator.Colleague;
import android_design_mode.chapter17_mediator.computer_mediator.Mediator;

public class CDDevice extends Colleague {

    private String data;

    public CDDevice(Mediator mediator) {
        super(mediator);
    }

    public String read() {
        return data;
    }

    public void load() {
        data = "Video data , Sound data";

        mediator.change(this);
    }
}
